Skip to main content

Total Fees Collected Per Denom

Queries the total amount of fees collected by the VLP for the specified token denomination.

query Vlp($contract: String, $pair: PairInput, $denom: String!) {
vlp(contract: $contract, pair: $pair) {
total_fees_collected_per_denom(denom: $denom) {
lp_fees
euclid_fees
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Total_fees_collected_per_denom($denom: String!, $contract: String!) {\n vlp(contract: $contract) {\n total_fees_collected_per_denom(denom: $denom) {\n lp_fees\n euclid_fees\n }\n }\n}","variables":{"contract":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m","denom":"stars"}}'

Open in Playground

Arguments

ArgumentTypeDescription
contractStringThe contract address of the VLP. Required if pair is not provided.
pairPairInputThe pair of tokens belonging to the VLP. Required if contract is not provided.
denomString!The token Id of the token to get the total fees for.

Return Fields

FieldTypeDescription
lp_feesLpFeesThe total amount of fees collected by liquidity providers for this denom.
euclid_feesEuclidFeesThe total amount of fees collected by Euclid protocol for this denom.